package com.feeyo.groundservice.recordnfc.model

import com.feeyo.groundservice.base_util.formatTimeYMDHM

/**
 *作者：70893 on 2025-10-15
 *描述：
 */

data class NfcLogBO(
    val data: List<NfcLogItemBO>
)

data class NfcLogItemBO(
    val id:String,
    private val username: String,
    private val created_time: Long,
    private val content: String,
) {
    val msg: String
        get() = content.trim().substringBeforeLast(" ").replace(" ", "\n")

    val nfc:String
        get()=content.trim().substringAfterLast(" ")

    val recorder: String
        get() = "$username ${created_time.formatTimeYMDHM()}录入"
}